extends Node


var resource_name_map: Dictionary[String, String] = {
	# equipment
	"equip_ghost_hat": "res://items/equipitems/equip_ghost_hat.tscn",
	
	
	# hold item
	"hold_melee_sword_01": "res://items/holditems/melee_weapons/hold_melee_sword_01.tscn",
	"hold_apple": "res://items/holditems/consumable/hold_apple.tscn",
	"hold_spell_summon_bat": "res://items/holditems/spell/summon_bat/hold_spell_summon_bat.tscn",
	"hold_offhand_spell_summon_bat": "res://items/holditems/spell/summon_bat/hold_offhand_spell_summon_bat.tscn",
	"hold_cigarette_light": "res://items/holditems/light/hold_cigarette_light.tscn",
	"hold_spot_lighter": "res://items/holditems/light/hold_spot_lighter.tscn",
	"hold_equipment_light_ball": "res://items/holditems/equipment/hold_equipment_light_ball.tscn",
	"hold_light_bag": "res://items/holditems/light/hold_light_bag.tscn",
	"hold_light_stone": "res://items/holditems/light/hold_light_stone.tscn",
	"hold_random_transfer_scroll": "res://items/holditems/random_transfer_scroll/hold_random_transfer_scroll.tscn",
	"hold_compass": "res://items/holditems/compass/hold_compass.tscn",
	"hold_offhand_spell_fire": "res://items/holditems/spell/attack_spell/hold_offhand_spell_fire.tscn",
	"hold_heal_fish": "res://items/holditems/consumable/hold_heal_fish.tscn",
	"hold_reborn_cross": "res://items/holditems/consumable/hold_reborn_cross.tscn",
	"hold_bomb": "res://items/holditems/bomb/hold_bomb.tscn",
	"hold_numb_ring": "res://items/holditems/numb_ring/hold_numb_ring.tscn",
	"hold_cotton": "res://items/holditems/item/cotton/hold_cotton.tscn",
	"hold_glasses": "res://items/holditems/item/hold_glasses.tscn",
	"hold_candy": "res://items/holditems/item/hold_candy.tscn",
	"hold_undamagable_potion": "res://items/holditems/consumable/potion/hold_undamagable_potion.tscn",
	"hold_infinity_random_transfer_scroll": "res://items/holditems/random_transfer_scroll/hold_infinity_random_transfer_scroll.tscn",
	"hold_defense_potion": "res://items/holditems/consumable/potion/defense/hold_defense_potion.tscn",
	"hold_life_potion": "res://items/holditems/consumable/potion/life/hold_life_potion.tscn",
	"hold_full_life_recover_potion": "res://items/holditems/consumable/potion/full_life_recover/hold_full_life_recover_potion.tscn",
	"hold_exp_potion": "res://items/holditems/consumable/potion/exp/hold_exp_potion.tscn",
	"hold_inifinity_bomb": "res://items/holditems/infinity_bomb/hold_inifinity_bomb.tscn",
	"hold_attack_potion": "res://items/holditems/consumable/potion/attack/hold_attack_potion.tscn",
	"hold_melee_axe": "res://items/holditems/melee_weapons/hold_melee_axe.tscn",
	"hold_self_bomb_scroll": "res://items/holditems/self_bomb/hold_self_bomb_scroll.tscn",
	"hold_equipment_jellyfish": "res://items/holditems/equipment/hold_equipment_jellyfish.tscn",
	"hold_equipment_slime": "res://items/holditems/equipment/hold_equipment_slime.tscn",
	"hold_equipment_poison_pot": "res://items/holditems/equipment/hold_equipment_poison_pot.tscn",
	"hold_equipment_balance_scale": "res://items/holditems/equipment/hold_equipment_balance_scale.tscn",
	"hold_equipment_ice_sword": "res://items/holditems/equipment/hold_equipment_ice_sword.tscn",
	"hold_equipment_frog_hat": "res://items/holditems/equipment/hold_equipment_frog_hat.tscn",
	"hold_gun_rocket_launcher": "res://items/holditems/gun/rocket_launcher/hold_gun_rocket_launcher.tscn",
	
	# hold spell
	"hold_spell_summon_minuotao": "res://items/holditems/spell/summon_minuotao/hold_spell_summon_minuotao.tscn",
	"hold_offhand_spell_summon_minuotao": "res://items/holditems/spell/summon_minuotao/hold_offhand_spell_summon_minuotao.tscn",
	"hold_spell_summon_ironslimeking": "res://items/holditems/spell/ironslimeking/hold_spell_summon_ironslimeking.tscn",
	"hold_spell_summon_bombboss": "res://items/holditems/spell/bombboss/hold_spell_summon_bombboss.tscn",
	"hold_spell_fire": "res://items/holditems/spell/attack_spell/hold_spell_fire.tscn",
	"hold_spell_fire_ring": "res://items/holditems/spell/attack_spell/fire_ring/hold_spell_fire_ring.tscn",
	"hold_spell_water_bullet": "res://items/holditems/spell/attack_spell/water/hold_spell_water_bullet.tscn",
	"hold_offhand_spell_water_bullet": "res://items/holditems/spell/attack_spell/water/hold_offhand_spell_water_bullet.tscn",
	"hold_spell_summon_jellyfish": "res://items/holditems/spell/summon/hold_spell_summon_jellyfish.tscn",
	"hold_spell_ghost_fire": "res://items/holditems/spell/attack_spell/ghost_fire/hold_spell_ghost_fire.tscn",
	"hold_spell_summon_reaper": "res://items/holditems/spell/summon/hold_spell_summon_reaper.tscn",
	"hold_spell_summon_pig": "res://items/holditems/spell/summon/hold_spell_summon_pig.tscn",
	
	# hold magic
	"hold_ice_staff": "res://items/holditems/magic/hold_ice_staff.tscn",
	"hold_lightning_staff": "res://items/holditems/magic/hold_lightning_staff.tscn",
	"hold_sakura_sword": "res://items/holditems/magic/hold_sakura_sword.tscn",
	"hold_magic_lightning_cloud": "res://items/holditems/magic/hold_magic_lightning_cloud.tscn",
	"hold_gravity_staff": "res://items/holditems/magic/hold_gravity_staff.tscn",
	"hold_dragon_lightning_staff": "res://items/holditems/magic/hold_dragon_lightning_staff.tscn",
	
	# hold item gun
	"hold_gun_glock": "res://items/holditems/gun/hold_gun_glock.tscn",
	"hold_gun_awp": "res://items/holditems/gun/awp/hold_gun_awp.tscn",
	"hold_gun_shotgun": "res://items/holditems/gun/shotgun/hold_gun_shotgun.tscn",
	"hold_gun_gravity": "res://items/holditems/gun/gravity/hold_gun_gravity.tscn",
	"hold_poison_bow": "res://items/holditems/gun/bow/hold_poison_bow.tscn",
	"hold_devil_spear": "res://items/holditems/devil_spear/hold_devil_spear.tscn",
	"hold_gun_bat_dart": "res://items/holditems/gun/bat_dart/hold_gun_bat_dart.tscn",
	"hold_gun_intelligence": "res://items/holditems/gun/intelligence/hold_gun_intelligence.tscn",
	"hold_gun_laser": "res://items/holditems/gun/hold_gun_laser.tscn",
	"hold_gun_laser_shooter": "res://items/holditems/gun/hold_gun_laser_shooter.tscn",
	
	# hold melee
	"hold_melee_reaper": "res://items/holditems/melee_weapons/hold_melee_reaper.tscn",
	"hold_melee_flamesword": "res://items/holditems/melee_weapons/hold_melee_flamesword.tscn",
	"hold_melee_darksword": "res://items/holditems/melee_weapons/hold_melee_darksword.tscn",
	"hold_melee_katana": "res://items/holditems/melee_weapons/hold_melee_katana.tscn",
	"hold_melee_poison_sword": "res://items/holditems/melee_weapons/hold_melee_poison_sword.tscn",
	"hold_long_spear": "res://items/holditems/melee_weapons/hold_long_spear.tscn",
	"hold_wooden_club": "res://items/holditems/melee_weapons/hold_wooden_club.tscn",
	"hold_melee_moon_blade": "res://items/holditems/melee_weapons/hold_melee_moon_blade.tscn",
	"hold_melee_heavy_sword": "res://items/holditems/melee_weapons/hold_melee_heavy_sword.tscn",
	
	# hold equipment
	"hold_equipment_ghost_hat": "res://items/holditems/equipment/hold_equipment_ghost_hat.tscn",
	"hold_equipment_speed_hat": "res://items/holditems/equipment/hold_equipment_speed_hat.tscn",
	"hold_equipment_wing": "res://items/holditems/equipment/hold_equipment_wing.tscn",
	"hold_equipment_urchin": "res://items/holditems/equipment/hold_equipment_urchin.tscn",
	"hold_equipment_lightning_ball": "res://items/holditems/equipment/hold_equipment_lightning_ball.tscn",
	"hold_equipment_bat_hat": "res://items/holditems/equipment/hold_equipment_bat_hat.tscn",
	
	# equip
	"equip_light_ball": "res://items/equipitems/equip_light_ball.tscn",
	"equip_speed_hat": "res://items/equipitems/equip_speed_hat.tscn",
	"equip_wing": "res://items/equipitems/equip_wing.tscn",
	"equip_urchin_cloth": "res://items/equipitems/equip_urchin_cloth.tscn",
	"equip_lightning_ball": "res://items/equipitems/equip_lightning_ball.tscn",
	"equip_jellyfish": "res://items/equipitems/equip_jellyfish.tscn",
	"equip_slime": "res://items/equipitems/equip_slime.tscn",
	"equip_bat_hat": "res://items/equipitems/equip_bat_hat.tscn",
	"equip_poison_pot": "res://items/equipitems/equip_poison_pot.tscn",
	"equip_balance_scale": "res://items/equipitems/equip_balance_scale.tscn",
	"equip_ice_sword": "res://items/equipitems/equip_ice_sword.tscn",
	"equip_frog_hat": "res://items/equipitems/equip_frog_hat.tscn",
	
	# ui quick select item
	"quick_switch_item": "res://ui/quick_switch_item/ui_quick_switch_item_item.tscn",
	"pickup_item_tip": "res://ui/pickup_item/pickup_item_tip.tscn",
	
	# ui damage
	"ui_damage_number": "res://ui/damage/ui_damage_number.tscn",
	
	# icon texture resource
	"texture_apple": "res://textures/consumable/apple.png",
	"texture_sword_01": "res://textures/weapons/sword_01/sword_01_normal.png",
	"texture_magic_book_dark": "res://textures/magic/magic_book_dark.png",
	"cigarette lighter": "res://textures/light/cigarette lighter.png",
	"spot_lighter": "res://textures/light/spot_lighter.png",
	"texture_light_ball": "res://textures/equipment/light_ball/light_ball.png",
	"texture_takeoff_equipment": "res://textures/equipment/icon_takeoff_equipment.png",
	"texture_test_card_01": "res://textures/cards/test_card_01.png",
	"texture_glock": "res://textures/gun/glock.png",
	"texture_reaper": "res://textures/weapons/reaper/reaper_idle.png",
	"texture_light_stone_bag": "res://textures/light/light_stone_bag.png",
	"texture_light_stone": "res://textures/light/light_stone.png",
	"texture_random_transfer_scroll": "res://textures/item/random_transfer_scroll.png",
	"texture_key": "res://textures/key/key.png",
	"texture_big_key": "res://textures/key/big_key.png",
	"texture_devil_spear": "res://textures/weapons/devil_spear/devil_spear_icon.png",
	"texture_compass_icon": "res://textures/item/compass/compass_icon.png",
	"texture_heal_fish": "res://textures/unit/heal_fish/heal_fish.png",
	"texture_reborn_cross": "res://textures/item/reborn_cross.png",
	"texture_bomb": "res://textures/item/bomb.png",
	"texture_numb_ring": "res://textures/item/numb_ring.png",
	"texture_cotton": "res://textures/item/cotton.png",
	"texture_glasses": "res://textures/item/glasses.png",
	"texture_candy": "res://textures/item/candy.png",
	"texture_undamagable_potion": "res://textures/item/undamagable_potion.png",
	"texture_infinity_random_transfer_scroll": "res://textures/item/infinity_random_transfer_scroll.png",
	"texture_defense_potion": "res://textures/consumable/potion/defense_potion.png",
	"texture_speed_hat": "res://textures/equipment/speed_hat_icon.png",
	"texture_life_potion": "res://textures/consumable/potion/life_potion.png",
	"texture_full_life_recover_potion": "res://textures/consumable/potion/full_life_recover_potion.png",
	"texture_exp_potion": "res://textures/consumable/potion/exp_potion.png",
	"texture_infinity_bomb": "res://textures/item/infinity_bomb.png",
	"texture_long_spear": "res://textures/weapons/long_spear/long_spear_idle.png",
	"texture_wooden_club": "res://textures/weapons/wooden_club/wooden_club_idle.png",
	"texture_moon_blade": "res://textures/weapons/moon_blade/moon_blade_idle.png",
	"texture_attack_potion": "res://textures/consumable/potion/attack_potion.png",
	"texture_heavy_sword": "res://textures/weapons/heavy_sword/heavy_sword_idle.png",
	"texture_self_bomb_paper": "res://textures/item/self_bomb_paper.png",
	"texture_rocket_launcher": "res://textures/gun/rocket_launcher.png",
	
	# texture equipment
	"texture_ghost_hat": "res://textures/equipment/ghost_hat.png",
	"texture_wing": "res://textures/equipment/wing.png",
	"texture_urchin_cloth": "res://textures/equipment/urchin_cloth.png",
	"texture_lightning_ball": "res://textures/equipment/lightning_ball/lightning_ball_body.png",
	"texture_equip_jellyfish": "res://textures/equipment/equip_jellyfish.png",
	"texture_slime_hat": "res://textures/equipment/slime_hat.png",
	"texture_bat_hat": "res://textures/equipment/bat_hat.png",
	"texture_poison_pot": "res://textures/equipment/poison_pot.png",
	"texture_balance_scale": "res://textures/equipment/balance_scale.png",
	"texture_ice_sword": "res://textures/equipment/ice_sword.png",
	"texture_frog_hat": "res://textures/equipment/frog_hat.png",
	
	# melee
	"texture_flame_sword_icon": "res://textures/weapons/flamesword/flame_sword_icon.png",
	"texture_dark_sword": "res://textures/weapons/dark_sword/dark_sword_idle.png",
	"texture_katana": "res://textures/weapons/katana/katana_idle.png",
	"texture_poison_sword": "res://textures/weapons/poison_sword/poison_sword_idle.png",
	"texture_axe": "res://textures/weapons/axe/axe_idle.png",
	
	# magic
	"texture_ice_staff": "res://textures/weapons/magicweapon/ice_staff.png",
	"texture_lightning_staff": "res://textures/weapons/lightning_staff/lightning_staff.png",
	"texture_magic_sakura": "res://textures/magic/magic_sakura.png",
	"lightning_magic": "res://particles/lightning/lightning_magic.tscn",
	"texture_thunder_cloud": "res://textures/magic/thunder_cloud.png",
	"texture_magic_book_fire": "res://textures/magic/magic_book_fire.png",
	"texture_gravity_staff": "res://textures/weapons/gravity_staff/gravity_staff.png",
	"texture_dragon_staff": "res://textures/magic/dragon_staff.png",
	"texture_magic_book_water": "res://textures/magic/magic_book_water.png",
	
	# icon gun
	"texture_awp": "res://textures/gun/awp.png",
	"texture_shotgun": "res://textures/gun/shotgun.png",
	"texture_gravity_gun": "res://textures/gun/gravity_gun.png",
	"texture_bow": "res://textures/gun/bow.png",
	"texture_bat_dart": "res://textures/weapons/batdart/bat_dart.png",
	"texture_intelligence_gun": "res://textures/gun/intelligence_gun.png",
	"texture_laser_gun": "res://textures/gun/laser_gun.png",
	"texture_laser_shooter": "res://textures/unit/laser_shooter/laser_shooter.png",
	
	# particles
	"particle_crumbs": "res://particles/particle_crumbs.tscn",
	"particle_pickup_01": "res://particles/particle_pickup_01.tscn",
	"particle_attack_charged_effect": "res://particles/particle_attack_charged_effect.tscn",
	"particle_charged_attack_release_effect": "res://particles/particle_charged_attack_release_effect.tscn",
	"particle_hit_blood": "res://particles/particle_hit_blood.tscn",
	"particle_hit_effect": "res://particles/particle_hit_effect.tscn",
	"particle_death_effect": "res://particles/particle_death_effect.tscn",
	"particle_level_up": "res://particles/particle_level_up.tscn",
	"particle_magic_bullet_hit_effect": "res://particles/particle_magic_bullet_hit_effect.tscn",
	"particle_critical_attack_effect": "res://particles/particle_critical_attack_effect.tscn",
	"particle_water_splash": "res://particles/water/particle_water_splash.tscn",
	"particle_crate_crumbs": "res://particles/props/particle_crate_crumbs.tscn",
	"particle_muzzle_flash": "res://items/holditems/gun/particle_muzzle_flash.tscn",
	"gravity_attack": "res://bullets/gravity_attack.tscn",
	"particle_hit_ground_burst": "res://particles/particle_hit_ground_burst.tscn",
	"particle_poison_debuff": "res://particles/debuff/particle_poison_debuff.tscn",
	"particle_hand_hold_magic_effect_dark": "res://particles/particle_hand_hold_magic_effect_dark.tscn",
	"particle_flame_debuff": "res://particles/debuff/particle_flame_debuff.tscn",
	"particle_block_destroy": "res://particles/particle_block_destroy.tscn",
	"particle_bomb": "res://particles/particle_bomb.tscn",
	"particle_shoot_ice_magic": "res://particles/particle_shoot_ice_magic.tscn",
	"particle_ice_magic": "res://particles/particle_ice_magic.tscn",
	"particle_shoot_lightning": "res://particles/particle_shoot_lightning.tscn",
	"particle_attack_sakura": "res://particles/sakura/particle_attack_sakura.tscn",
	"particle_heal": "res://particles/particle_heal.tscn",
	"particle_heal_hp_effect": "res://particles/particle_heal_hp_effect.tscn",
	"particle_fire_hit_effect": "res://particles/particle_fire_hit_effect.tscn",
	"particle_gun_shoot_hit_effect": "res://particles/gun/particle_gun_shoot_hit_effect.tscn",
	"particle_bullet_intelligence_hit_effect": "res://particles/gun/particle_bullet_intelligence_hit_effect.tscn",
	"particle_gravity_attack_tip": "res://particles/particle_gravity_attack_tip.tscn",
	"particle_fire_ring": "res://particles/particle_fire_ring.tscn",
	"particle_water_bullet": "res://particles/particle_water_bullet.tscn",
	"particle_water_hit_effect": "res://particles/particle_water_hit_effect.tscn",
	"particle_poison_bullet": "res://particles/particle_poison_bullet.tscn",
	"particle_poison_bullet_hit_effect": "res://particles/particle_poison_bullet_hit_effect.tscn",
	"particle_ghost_fire_hit_effect": "res://particles/particle_ghost_fire_hit_effect.tscn",
	"particle_blood_hit_effect": "res://particles/particle_blood_hit_effect.tscn",
	"particle_reborn": "res://particles/reborn/particle_reborn.tscn",
	"particle_explosion_effect": "res://particles/particle_explosion_effect.tscn",
	"particle_missle_explosion_effect": "res://particles/particle_missle_explosion_effect.tscn",
	"particle_numb_debuff": "res://particles/particle_numb_debuff.tscn",
	"particle_drink_potion_effect": "res://particles/particle_drink_potion_effect.tscn",
	"undamagable_star_effect": "res://particles/undamagable_star_effect.tscn",
	"particle_add_defense_effect": "res://particles/particle_add_defense_effect.tscn",
	"particle_add_life_effect": "res://particles/particle_add_life_effect.tscn",
	"particle_add_exp_effect": "res://particles/particle_add_exp_effect.tscn",
	"particle_add_attack_effect": "res://particles/particle_add_attack_effect.tscn",
	"particle_self_bomb_explosion_effect": "res://particles/particle_self_bomb_explosion_effect.tscn",
	"particle_lightning_ball_hit_effect": "res://particles/particle_lightning_ball_hit_effect.tscn",
	"particle_frozen_debuff": "res://particles/particle_frozen_debuff.tscn",
	"particle_tank_missle": "res://particles/particle_tank_missle.tscn",
	
	# bullet
	"spell_summon_bat_bullet": "res://bullets/spell_summon_bullets/bat/spell_summon_bat_bullet.tscn",
	"spell_summon_minuotao_bullet": "res://bullets/spell_summon_bullets/minuotao/spell_summon_minuotao_bullet.tscn",
	"bullet_poison_arrow": "res://items/holditems/gun/bow/poison_bow/bullet_poison_arrow.tscn",
	"spell_summon_ironslimeking_bullet": "res://bullets/spell_summon_bullets/ironslimeking/spell_summon_ironslimeking_bullet.tscn",
	"spell_summon_bombboss_bullet": "res://bullets/spell_summon_bullets/spell_summon_bombboss_bullet.tscn",
	"bullet_devil_spear": "res://items/holditems/devil_spear/bullet_devil_spear.tscn",
	"fire_bullet": "res://bullets/fire_bullet.tscn",
	"spell_summon_vampire_bullet": "res://bullets/spell_summon_bullets/vampire/spell_summon_vampire_bullet.tscn",
	"bullet_bat_dart": "res://bullets/bat_dart/bullet_bat_dart.tscn",
	"bullet_intelligence": "res://bullets/bullet_intelligence.tscn",
	"spell_summon_jellyfish_bullet": "res://bullets/spell_summon_bullets/jellyfish/spell_summon_jellyfish_bullet.tscn",
	"particle_ghost_fire_bullet": "res://particles/particle_ghost_fire_bullet.tscn",
	"laser_shooter_for_gun": "res://characters/trap/laser_shooter_for_gun.tscn",
	"throw_bomb": "res://items/holditems/bomb/throw_bomb.tscn",
	"spell_summon_reaper_bullet": "res://bullets/spell_summon_bullets/reaper/spell_summon_reaper_bullet.tscn",
	"spell_summon_pig_bullet": "res://bullets/spell_summon_bullets/spell_summon_pig_bullet.tscn",
	"throw_infinity_bomb": "res://items/holditems/infinity_bomb/throw_infinity_bomb.tscn",
	"moon_blade_wave": "res://particles/moon_blade/moon_blade_wave.tscn",
	"particle_lightning_ball_bullet": "res://particles/particle_lightning_ball_bullet.tscn",
	
	# unit
	"unit_bat": "res://characters/unit/bat/unit_bat.tscn",
	"unit_snake": "res://characters/unit/snake/unit_snake.tscn",
	"unit_minuotao": "res://characters/unit/minuotao/unit_minuotao.tscn",
	"unit_reaper": "res://characters/unit/reaper/unit_reaper.tscn",
	"unit_tengu": "res://characters/unit/tengu/unit_tengu.tscn",
	"unit_ironslimeking": "res://characters/unit/ironslimeking/unit_ironslimeking.tscn",
	"unit_flamelord": "res://characters/unit/flamelord/unit_flamelord.tscn",
	"unit_little_bomb": "res://characters/unit/bombboss/unit_little_bomb.tscn",
	"unit_bombboss": "res://characters/unit/bombboss/unit_bombboss.tscn",
	"unit_iceking": "res://characters/unit/iceking/unit_iceking.tscn",
	"unit_dark_knight": "res://characters/unit/dark_knight/unit_dark_knight.tscn",
	"unit_devil": "res://characters/unit/devil/unit_devil.tscn",
	"unit_bomb_bat": "res://characters/unit/bomb_bat/unit_bomb_bat.tscn",
	"unit_thunder_boss": "res://characters/unit/thunder_boss/unit_thunder_boss.tscn",
	"unit_vampire": "res://characters/unit/vampire/unit_vampire.tscn",
	"unit_bat_king": "res://characters/unit/batking/unit_bat_king.tscn",
	"unit_ghost": "res://characters/unit/ghost/unit_ghost.tscn",
	"unit_white_tiger": "res://characters/unit/white_tiger/unit_white_tiger.tscn",
	"unit_dragon": "res://characters/unit/dragon/unit_dragon.tscn",
	"unit_fire_bird": "res://characters/unit/fire_bird/unit_fire_bird.tscn",
	"unit_big_turtle": "res://characters/unit/big_turtle/unit_big_turtle.tscn",
	"unit_jellyfish": "res://characters/unit/jellyfish/unit_jellyfish.tscn",
	"unit_wizard": "res://characters/unit/wizard/unit_wizard.tscn",
	"unit_sea_urchin": "res://characters/unit/sea_urchin/unit_sea_urchin.tscn",
	"unit_heal_fish": "res://characters/unit/heal_fish/unit_heal_fish.tscn",
	"unit_frog": "res://characters/unit/frog/unit_frog.tscn",
	"unit_gargoyle": "res://characters/unit/gargoyle/unit_gargoyle.tscn",
	"unit_fly_wild_pig": "res://characters/unit/flywildpig/unit_fly_wild_pig.tscn",
	"unit_tank": "res://characters/unit/tank/unit_tank.tscn",
	
	# level
	"test_level": "res://levels/test_level.tscn",
	"main_game_level": "res://levels/main_game_level.tscn",
	"game_end_screen": "res://levels/game_end/game_end_screen.tscn",
	"map_marker": "res://items/map/map_marker.tscn",
	"game_end_level": "res://levels/game_end/game_end_level.tscn",
	"title_level": "res://levels/title_level.tscn",
	
	
	# player
	"player": "res://characters/player/player.tscn",
	
	# camera
	"camera_2d": "res://levels/camera_2d.tscn",
	
	# drop 
	"drop_apple": "res://items/dropitems/drop_apple.tscn",
	"drop_sword_01": "res://items/dropitems/drop_sword_01.tscn",
	"drop_gold": "res://items/dropitems/drop_gold.tscn",
	"drop_exp": "res://items/dropitems/drop_exp.tscn",
	"drop_equipment_light_ball": "res://items/dropitems/equipment/drop_equipment_light_ball.tscn",
	"drop_card_test_01": "res://items/dropitems/card/drop_card_test_01.tscn",
	"drop_light_bag": "res://items/dropitems/light/drop_light_bag.tscn",
	"drop_light_stone": "res://items/dropitems/light/drop_light_stone.tscn",
	"drop_big_key": "res://items/dropitems/key/drop_big_key.tscn",
	"drop_little_key": "res://items/dropitems/key/drop_little_key.tscn",
	"drop_compass": "res://items/dropitems/compass/drop_compass.tscn",
	"drop_random_transfer_scroll": "res://items/dropitems/random_transfer_scroll/drop_random_transfer_scroll.tscn",
	"drop_equipment_ghost_hat": "res://items/dropitems/equipment/drop_equipment_ghost_hat.tscn",
	"drop_heal_fish": "res://items/dropitems/food/drop_heal_fish.tscn",
	"drop_gun_laser": "res://items/dropitems/gun/drop_gun_laser.tscn",
	"drop_reborn_cross": "res://items/dropitems/drop_reborn_cross.tscn",
	"drop_bomb": "res://items/dropitems/bomb/drop_bomb.tscn",
	"drop_numb_ring": "res://items/dropitems/drop_numb_ring.tscn",
	"drop_cotton": "res://items/dropitems/item/drop_cotton.tscn",
	"drop_glasses": "res://items/dropitems/item/drop_glasses.tscn",
	"drop_candy": "res://items/dropitems/item/drop_candy.tscn",
	"drop_undamagable_potion": "res://items/dropitems/potion/drop_undamagable_potion.tscn",
	"drop_infinity_random_transfer_scroll": "res://items/dropitems/random_transfer_scroll/drop_infinity_random_transfer_scroll.tscn",
	"drop_defense_potion": "res://items/dropitems/potion/drop_defense_potion.tscn",
	"drop_equipment_speed_hat": "res://items/dropitems/equipment/drop_equipment_speed_hat.tscn",
	"drop_equipment_wing": "res://items/dropitems/equipment/drop_equipment_wing.tscn",
	"drop_life_potion": "res://items/dropitems/potion/drop_life_potion.tscn",
	"drop_full_life_recover_potion": "res://items/dropitems/potion/drop_full_life_recover_potion.tscn",
	"drop_exp_potion": "res://items/dropitems/potion/drop_exp_potion.tscn",
	"drop_infinity_bomb": "res://items/dropitems/infinity_bomb/drop_infinity_bomb.tscn",
	"drop_attack_potion": "res://items/dropitems/potion/drop_attack_potion.tscn",
	"drop_self_bomb_scroll": "res://items/dropitems/bomb/drop_self_bomb_scroll.tscn",
	"drop_equipment_urchin": "res://items/dropitems/equipment/drop_equipment_urchin.tscn",
	"drop_equipment_lightning_ball": "res://items/dropitems/equipment/drop_equipment_lightning_ball.tscn",
	"drop_equipment_jellyfish": "res://items/dropitems/equipment/drop_equipment_jellyfish.tscn",
	"drop_equipment_slime": "res://items/dropitems/equipment/drop_equipment_slime.tscn",
	"drop_equipment_bat_hat": "res://items/dropitems/equipment/drop_equipment_bat_hat.tscn",
	"drop_equipment_poison_pot": "res://items/dropitems/equipment/drop_equipment_poison_pot.tscn",
	"drop_equipment_balance_scale": "res://items/dropitems/equipment/drop_equipment_balance_scale.tscn",
	"drop_equipment_ice_sword": "res://items/dropitems/equipment/drop_equipment_ice_sword.tscn",
	"drop_equipment_frog_hat": "res://items/dropitems/equipment/drop_equipment_frog_hat.tscn",
	"drop_gun_rocket_launcher": "res://items/dropitems/gun/drop_gun_rocket_launcher.tscn",
	
	#drop melee
	"drop_reaper": "res://items/dropitems/weapon/drop_reaper.tscn",
	"drop_flamesword": "res://items/dropitems/weapon/drop_flamesword.tscn",
	"drop_darksword": "res://items/dropitems/weapon/drop_darksword.tscn",
	"drop_devil_spear": "res://items/dropitems/gun/drop_devil_spear.tscn",
	"drop_sakura_sword": "res://items/dropitems/magic/drop_sakura_sword.tscn",
	"drop_katana": "res://items/dropitems/weapon/drop_katana.tscn",
	"drop_poison_sword": "res://items/dropitems/weapon/drop_poison_sword.tscn",
	"drop_long_spear": "res://items/dropitems/weapon/drop_long_spear.tscn",
	"drop_wooden_club": "res://items/dropitems/weapon/drop_wooden_club.tscn",
	"drop_moon_blade": "res://items/dropitems/weapon/drop_moon_blade.tscn",
	"drop_heavy_sword": "res://items/dropitems/weapon/drop_heavy_sword.tscn",
	"drop_melee_axe": "res://items/dropitems/weapon/drop_melee_axe.tscn",
	
	# drop spell
	"drop_spell_summon_bat": "res://items/dropitems/spell/drop_spell_summon_bat.tscn",
	"drop_spell_summon_minuotao": "res://items/dropitems/spell/drop_spell_summon_minuotao.tscn",
	"drop_spell_summon_ironslimeking": "res://items/dropitems/spell/drop_spell_summon_ironslimeking.tscn",
	"drop_spell_summon_bombboss": "res://items/dropitems/spell/drop_spell_summon_bombboss.tscn",
	"drop_spell_fire_ring": "res://items/dropitems/spell/drop_spell_fire_ring.tscn",
	"drop_spell_water_bullet": "res://items/dropitems/spell/drop_spell_water_bullet.tscn",
	"drop_spell_summon_jellyfish": "res://items/dropitems/spell/drop_spell_summon_jellyfish.tscn",
	"drop_spell_fire": "res://items/dropitems/spell/drop_spell_fire.tscn",
	"drop_spell_summon_vampire": "res://items/dropitems/spell/drop_spell_summon_vampire.tscn",
	"drop_spell_ghost_fire": "res://items/dropitems/spell/drop_spell_ghost_fire.tscn",
	"drop_spell_summon_reaper": "res://items/dropitems/spell/drop_spell_summon_reaper.tscn",
	"drop_spell_summon_pig": "res://items/dropitems/spell/drop_spell_summon_pig.tscn",
	
	# drop magic
	"drop_ice_staff": "res://items/dropitems/magic/drop_ice_staff.tscn",
	"drop_lightning_cloud": "res://items/dropitems/magic/drop_lightning_cloud.tscn",
	"drop_gravity_staff": "res://items/dropitems/magic/drop_gravity_staff.tscn",
	"drop_dragon_lightning_staff": "res://items/dropitems/magic/drop_dragon_lightning_staff.tscn",
	"drop_lightning_staff": "res://items/dropitems/magic/drop_lightning_staff.tscn",
	
	# drop gun
	"drop_gun_glock": "res://items/dropitems/gun/drop_gun_glock.tscn",
	"drop_gun_awp": "res://items/dropitems/gun/drop_gun_awp.tscn",
	"drop_gun_shotgun": "res://items/dropitems/gun/drop_gun_shotgun.tscn",
	"drop_gun_gravity": "res://items/dropitems/gun/drop_gun_gravity.tscn",
	"drop_poison_bow": "res://items/dropitems/gun/drop_poison_bow.tscn",
	"drop_gun_bat_dart": "res://items/dropitems/gun/drop_gun_bat_dart.tscn",
	"drop_gun_intelligence": "res://items/dropitems/gun/drop_gun_intelligence.tscn",
	"drop_gun_laser_shooter": "res://items/dropitems/gun/drop_gun_laser_shooter.tscn",
	
	# buff
	"buff_reaper_death": "res://buff/buff_reaper_death.tscn",
	"buff_gravity_attack": "res://buff/buff_gravity_attack.tscn",
	"buff_anti_gravity_attack": "res://buff/buff_anti_gravity_attack.tscn",
	"buff_poison": "res://buff/poison/buff_poison.tscn",
	"debuff_flame": "res://buff/flame/debuff_flame.tscn",
	"buff_sakura_attack": "res://buff/sakura/buff_sakura_attack.tscn",
	"debuff_numb": "res://buff/numb/debuff_numb.tscn",
	"buff_undamagable": "res://buff/undamagable/buff_undamagable.tscn",
	"debuff_frozen": "res://buff/numb/debuff_frozen.tscn",
	
	# sfx
	"sfx_explosion": "res://sfx/sfx_explosion.wav",
	"sfx_gravity_hit": "res://sfx/sfx_gravity_hit.wav",
	"sfx_hit": "res://sfx/sfx_hit.wav",
	"sfx_intelligence_gun_shoot": "res://sfx/sfx_intelligence_gun_shoot.wav",
	"sfx_jump": "res://sfx/sfx_jump.wav",
	"sfx_level_up": "res://sfx/sfx_level_up.wav",
	"sfx_menubuttonclick": "res://sfx/sfx_menubuttonclick.wav",
	"sfx_pickup": "res://sfx/sfx_pickup.wav",
	"sfx_sword_swing": "res://sfx/sfx_sword_swing.wav",
	"sfx_fail": "res://sfx/sfx_fail.wav",
	"sfx_paper_page_flip": "res://sfx/sfx_paper_page_flip.wav",
	"music_main_level_bg": "res://sfx/music_main_level_bg.wav",
	"sfx_wood_break": "res://sfx/sfx_wood_break.wav",
	"music_title": "res://sfx/music_title.wav",
	"sfx_laser_shooting_loop": "res://sfx/sfx_laser_shooting_loop.wav",
	"sfx_ice_storm": "res://sfx/sfx_ice_storm.wav",
	"sfx_bite_apple": "res://sfx/sfx_bite_apple.wav",
	"sfx_drink": "res://sfx/sfx_drink.wav",
	"sfx_lightning_strike": "res://sfx/sfx_lightning_strike.wav",
	"sfx_lightning_shoot": "res://sfx/sfx_lightning_shoot.wav",
	"sfx_gun_shoot": "res://sfx/sfx_gun_shoot.wav",
	"sfx_common_fire_explotion": "res://sfx/sfx_common_fire_explotion.wav",
	"sfx_throw_item": "res://sfx/sfx_throw_item.wav",
	"sfx_arrow": "res://sfx/sfx_arrow.wav",
	"sfx_gravity_shoot": "res://sfx/sfx_gravity_shoot.wav",
	"sfx_cannon_shot": "res://sfx/sfx_cannon_shot.wav",
	"sfx_ocean": "res://sfx/sfx_ocean.wav",
	"sfx_random_transfer": "res://sfx/sfx_random_transfer.wav",
	"sfx_common_fire_shoot": "res://sfx/sfx_common_fire_shoot.wav",
	"sfx_charge_release": "res://sfx/sfx_charge_release.wav",
}

var resources: Dictionary[String, Resource] = {}


func get_resource(resource_name: String) -> Resource:
	var resource_path = resource_name_map[resource_name]
	
	if not resources.has(resource_path):
		var resource = load(resource_path)
		resources[resource_path] = resource
		
	return resources[resource_path]
	

func preload_resources():
	for key in resource_name_map.keys():
		get_resource(key)
